package com.yuelife.service.dao;
import com.yuelife.service.pojo.SStore;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:admin
 * @Description:SStore的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface SStoreMapper extends Mapper<SStore> {

    @Select("select * from s_store where storeTellphone=#{storeTellphone}")
    SStore findbystoreTellphone(String storeTellphone);

    @Select("select * from s_store where storeTellphone=#{storeTellphone} and storePassword=#{storePassword}")
    SStore findbyTellandpassword(String storeTellphone,String storePassword);

    @Select("select * from s_store where storeId=#{storeId}")
    SStore findBystoreId(Integer storeId);

    /**
     * 模糊查询
     * @param sStore
     * @return
     */
    List<SStore> findbycondition(SStore sStore);

}
